package com.sufen.seckill.vo;

import com.sufen.seckill.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Author sufen
 * @Date 2021/10/18 21:41
 * @Version 1.0
 * 登录对象（用户名+密码，用一个对象，方便前端传给后端）
 */

@Data
public class LoginVo {
    @NotNull
    @IsMobile
    private String mobile;

    @NotNull
    @Length(min = 32)
    private String password;
}
